package com.compass.framework.model

import com.compass.framework.utils.BigDecimalUtils
import java.io.Serializable

/**
 * Description： 耗材
 * Date:2024/1/17 9:44
 */

data class Consumable(
//{"id":1,"price":2.00,"name":"纱布"}
    val id: String,
    val price: Double,
    val name: String,
    var num: String,  //耗材数量 默认为1
){
    fun getTotalPrice():String{
        return BigDecimalUtils.mul(price, num.toDouble(),2)
    }
}
